package com.hllxd.hism.passport.base.redis;

/**
 * Token访问
 * @author xiyong.lxy
 * @date 2020-05-11 15:03
 */

public interface AccessTokenRedisMapper {
    /**
     * 缓存token到redis
     */
    void setAccessToken(String openID, String appKey, String appSecret, String value);
    String getAccessToken(String openID, String appKey, String appSecret);


    void setTokenInfo(String token, String value);
    String getTokenInfo(String token);
    /**
     * 判断token是否存在
     * @param token
     */
    boolean isTokenExist(String token);
}
